package designPattern.composite;

import java.util.LinkedList;

/**
 * Created by cdxuhongya on 2017/1/9.
 */
public class ProgramManager extends Employer{
    public ProgramManager(String name) {
        this.setName(name);
        this.setEmployers(new LinkedList<Employer>());
    }

    @Override
    public void add(Employer employer) {
        getEmployers().add(employer);
    }

    @Override
    public void remove(Employer employer) {
        getEmployers().remove(employer);
    }
}
